import { SET_FIlTER } from '../action/actionTypes' 

const filter = (state='', action) => {
    switch (action.type) {
        case SET_FIlTER:
            return {
                filter: action.filter
            }
        default:
            return state
    }
}

export default filter